package com.ustadzmenjawab.twitter;

import java.util.Hashtable;

import com.ustadzmenjawab.db.DBAccess;

public class UstadzList {
	private static Hashtable<Long,String> ustadzList ;
	
	private static void init(){
		DBAccess db = new DBAccess();
		ustadzList = db.getUstadzList();
	}
	
	public static Hashtable<Long,String> getInstance(){
		return ustadzList;
	}
	
	public static boolean isUstadz(long userid){
		if(ustadzList == null){
			init();
			
		}
		return ustadzList.containsKey(userid);
	}
}
